<!-- xml version="1.0" encoding="utf-8" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
	<title>De Bello Gallico</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<link href="../flashcard.css" rel="stylesheet" type="text/css">
</head>


<script type="text/javascript">
var sentences = [
  [ ["Hoc", "proelio", "facto", "reliquas", "copias", "Helvetiorum", "ut", "consequi", "posset,"],
    ["This", "battle", "having-been-done", "remaining", "forces", "of-Helvetii", "that", "to-follow-up", "he-might-be-able,"] ],
  [ ["pontem", "in", "Arare", "faciendum", "curat", "atque", "ita", "exercitum", "traducit."],
    ["[a]-bridge", "on", "the-Arar", "to-be-made", "he-causes", "and", "so", "[the]-army", "across-leads."] ],
  [ ["Helvetii", "repentino", "eius", "adventu", "commoti,", "cum", "id,", "quod", "ipsi", "diebus", "XX", "aegerrime", "confecerant,"],
    ["Helvetii", "by-[the]-sudden", "of-that-one", "coming", "greatly-moved,", "since", "that,", "which", "themselves", "in-days", "twenty", "with-greatest-difficulty", "had-brought-about,"] ],
  [ ["ut", "flumen", "transirent,", "ilium", "uno", "die", "fecisse", "intellegerent,", "legatos", "ad", "eum", "mittunt;"],
    ["that", "[the]-river", "over-they-should-go,", "that-one", "in-one", "day", "to-have-done", "they-perceived,", "legates", "to", "him", "send;"] ],
  [ ["cuius", "legationis", "Divico", "princeps", "fuit,", "qui", "bello", "Cassiano", "dux", "Helvetiorum", "fuerat."],
    ["of-which", "legation", "Divico", "chief", "was,", "who", "in-war", "Cassian", "leader", "of-Helvetii", "had-been."] ],
  [ ["Is", "ita", "cum", "Caesare", "egit:", "Si", "pacem", "populus", "Romanus", "cum", "Helvetiis", "faceret,"],
    ["That-one", "thus", "with", "Caesar", "treated:", "‘If", "peace", "people", "Roman", "with", "Helvetii", "would-make,"] ],
  [ ["in", "eam", "partem", "ituros", "atque", "ibi", "futuros", "Helvetios,", "ubi", "eos", "Caesar", "constituisset", "atque", "esse", "voluisset;"],
    ["in", "that", "direction", "about-to-go_(to_be)", "and", "there", "about-to-be_(to-be)", "Helvetii,", "where", "those", "Caesar", "should-have-appointed", "and", "to-be", "should-have-wished;"] ],
  [ ["sin", "bello", "persequi", "perseveraret,", "reminisceretur", "et", "veteris", "incommodi", "populi", "Romani", "et", "pristinae", "virtutis", "Helvetiorum."],
    ["but-if", "in-war", "through-to-follow", "he-would-persevere,", "he-should-be-mindful", "both", "of-[the]-old", "reverse", "of-people", "Roman", "and", "of-[the]-former", "valor", "of-Helvetii."] ],
  [ ["Quod", "improviso", "unum", "pagum", "adortus esset,", "cum", "ei,", "qui", "flumen", "transissent,"],
    ["That", "unexpectedly", "one", "canton", "risen-upon-he-had,", "when", "those,", "who", "river", "across-had-gone,"] ],
  [ ["suis", "auxilium", "ferre", "non", "possent,", "ne", "ob", "eam", "rem", "aut", "suae", "magnopere", "virtuti", "tribueret", "aut", "ipsos", "despiceret."],
    ["to-their-own", "aid", "to-bear", "not", "were-able,", "not", "on-account-of", "that", "thing", "either", "to-his-own", "specially", "valor", "he-should-attribute", "or", "themselves", "should-despise."] ],
  [ ["Se", "ita", "a", "patribus", "maioribusque", "suis", "didicisse,", "ut", "magis", "virtute", "quam", "dolo", "contenderent", "aut", "insidiis", "niterentur."],
    ["Themselves", "so", "from", "fathers", "ancestors-also", "their-own", "to-have-learned,", "that", "rather", "by-valor", "than", "by-artifice", "they-should-contend", "or", "ambuscades", "should-depend-upon."] ],
  [ ["Quare", "ne", "committeret", "ut", "is", "locus,", "ubi", "constitissent,"],
    ["Therefore", "not", "he-should-so-act", "that", "that", "place,", "where", "they-had-made-a-stand,"] ],
  [ ["ex", "calamitate", "populi", "Romani", "et", "internicione", "exercitus", "nomen", "caperet", "aut", "memoriam", "proderet."],
    ["from", "calamity", "of-people", "Roman", "and", "destruction", "of-army", "name", "should-take", "or", "[the]-memory", "should-hand-down.’"] ]
];

var i = 0;
var j = 0;

var shown = 0;

function updateVoc() {
	
	var sentence = "";
	
	for(n = 0; n < sentences[i][0].length; n++) {
		if (n == j) {
			sentence += ' <span class="curword">' + sentences[i][0][n] + "</span>";
		} else {
			sentence += " " + sentences[i][0][n];
		}
	}
	
	document.getElementById('v3').innerHTML = sentence;
	
	if (shown == 0) {
		document.getElementById('v1').innerHTML = "";
	} else {
		document.getElementById('v1').innerHTML = sentences[i][1][j];
	}
}

function next() {
	shown++;
	if (shown > 1) {
		shown = 0;
		j++;
		if (j >= sentences[i][0].length) {
			j = 0;
			i++;
			if (i >= sentences.length) {
				i = 0;
				alert('All done!');
			}
		}
	}
	updateVoc();
}

function prev() {
	shown--;
	if (shown < 0) {
		shown = 1;
		j--;
		
		if (j < 0) {
			i--;
			if (i < 0) {
				i = sentences.length - 1;
				alert('All done!');
			}
			j = sentences[i][0].length - 1;
		}
	}
	
	updateVoc();
}

</script>

<body onload="updateVoc()">
<h1 style="text-align:center; color: #60B0C0;">Liber I - Caput XIII</h1>

<div class="center">
<div id="v3" class="v3"></div>
<div id="v2" class="v2">&nbsp;</div>
<div id="v1" class="v1"></div>


<a href="#" class="button" id="btnprev" onclick="prev()" accesskey="p">&lt;&lt;</a>
<a href="#" class="button" id="btnnext" onclick="next()" accesskey="n">&gt;&gt;</a>


</div>
</body>
</html>
